//
//  TGDefaultsLoader.h
//  ThinkGeek LED Clock
//
//  Created by Tim Morgan on 4/29/05.
//  Copyright 2005 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <ScreenSaver/ScreenSaver.h>

#import "TGDefaultsModel.h"

@interface TGDefaultsLoader : NSObject {
	IBOutlet TGDefaultsModel	*defaultsModel;
	
	ScreenSaverDefaults *defaults;
}

#pragma mark <<initialization/singleton>>
- (void) awakeFromNib;
+ (TGDefaultsLoader *) loader;

#pragma mark <<defaults>>
- (void) loadDefaults;
- (void) writeDefaults;
- (void) createNewDefaults;

#pragma mark <<colors>>
- (id) unloadKey:(NSString *)key;
- (void) loadObject:(id)object forKey:(NSString *)key;
- (NSData *) archiveColorForDefaults:(NSColor *)color;
- (NSColor *) unarchiveColorFromDefaults:(NSData *)archive;

@end
